package com.zp.base.entity.bo;

import com.zp.common.core.entity.BaseEntity;
import com.zp.common.core.validate.AddGroup;
import com.zp.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 执行频次业务对象
 *
 * @author zhang peng
 * @date 2022-12-27
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class PerformFreqDictBo extends BaseEntity {

    /**
     * 执行频次主键
     */
    @NotBlank(message = "执行频次主键不能为空", groups = {EditGroup.class})
    private String freqId;

    /**
     * 执行频率描述
     */
    @NotBlank(message = "执行频率描述不能为空", groups = {AddGroup.class, EditGroup.class})
    private String freqDesc;

    /**
     * 频率次数
     */
    @NotNull(message = "频率次数不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal freqCounter;

    /**
     * 显示顺序
     */
    @NotNull(message = "显示顺序不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long showSort;

    /**
     * 频次间隔
     */
    @NotNull(message = "频次间隔不能为空", groups = {AddGroup.class, EditGroup.class})
    private BigDecimal freqInterval;

    /**
     * 频次单位
     */
    @NotBlank(message = "频次单位不能为空", groups = {AddGroup.class, EditGroup.class})
    private String freqIntervalUnit;

    /**
     * 执行时间
     */
    private String performTime;

    /**
     * 0:长期医嘱 1:临时医嘱
     */
    @NotBlank(message = "0:长期医嘱 1:临时医嘱不能为空", groups = {AddGroup.class, EditGroup.class})
    private String dictType;

    /**
     * 备注
     */
    private String remark;


}
